﻿using STHPMS1.ICore.I_Entity;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STHPMS1.ICore.I_DAL.Repository
{
    public interface IS_TrfvolsurveyRepository : IDal
    {
        /// <summary>
        /// 获取应用区间下的交通量信息，
        /// 一个应用区间每年也只有一个交通量数据
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="applyIds"></param>
        /// <returns></returns>
        IEnumerable<T> GetTrfvolsurveyByApply<T>(string applyIds)
            where T : class, IS_Trfvolsurvey;

        IEnumerable<T> GetTrfvolsurveyBySeg<T>(string rdwayid, double beginmp, double endmp, int direct, double? ver)
             where T : class, IS_Trfvolsurvey;
        /// <summary>
        /// 获取一个路线下所有交通量信息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="rdwayid"></param>
        /// <param name="direct"></param>
        /// <param name="checkDate"></param>
        /// <returns></returns>
        DataTable GetTrfvolsurveyByRoad(string rdwayid, int? direct, DateTime? checkDate);
    }
}
